package net.borlis.configuration.context.apache;

import org.apache.commons.lang.builder.ToStringBuilder;

/**
 * @author alex@borlis.net
 */
@Deprecated
public class ConfigurationData {

    private String schemaVersion;
    private String databaseDriver;
    private String databaseServer;
    private String databasePort;
    private String databaseUser;
    private String databasePassword;
    private Boolean databaseAutoUpdate;
    // -=-=-
    private String encryptionServiceURL;
    private String encryptionServiceLogin;
    private String encryptionServicePassword;
    // -=-=-
    private String clientKey;

    public ConfigurationData() {
    }

    public String getSchemaVersion() {
        return schemaVersion;
    }

    public void setSchemaVersion(String schemaVersion) {
        this.schemaVersion = schemaVersion;
    }

    public String getDatabaseDriver() {
        return databaseDriver;
    }

    public void setDatabaseDriver(String databaseDriver) {
        this.databaseDriver = databaseDriver;
    }

    public String getDatabaseServer() {
        return databaseServer;
    }

    public void setDatabaseServer(String databaseServer) {
        this.databaseServer = databaseServer;
    }

    public String getDatabasePort() {
        return databasePort;
    }

    public void setDatabasePort(String databasePort) {
        this.databasePort = databasePort;
    }

    public String getDatabaseUser() {
        return databaseUser;
    }

    public void setDatabaseUser(String databaseUser) {
        this.databaseUser = databaseUser;
    }

    public String getDatabasePassword() {
        return databasePassword;
    }

    public void setDatabasePassword(String databasePassword) {
        this.databasePassword = databasePassword;
    }

    public void setDatabaseAutoUpdate(Boolean databaseAutoUpdate){
        this.databaseAutoUpdate = databaseAutoUpdate;
    }

    public Boolean getDatabaseAutoUpdate() {
        return databaseAutoUpdate;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this).
                append("schemaVersion", getSchemaVersion()).
                append("databaseDriver", getDatabaseDriver()).
                append("databaseServer", getDatabaseServer()).
                append("databasePort", getDatabasePort()).
                append("databaseUser", getDatabaseUser()).
                append("databaseAutoUpdate", getDatabaseAutoUpdate()).
                append("encryptionServiceURL", getEncryptionServiceURL()).
                append("encryptionServiceLogin", getEncryptionServiceLogin()).
                append("clientKey", getClientKey()).
                toString();
    }

    public String getEncryptionServiceURL() {
        return encryptionServiceURL;
    }

    public void setEncryptionServiceURL(String encryptionServiceURL) {
        this.encryptionServiceURL = encryptionServiceURL;
    }

    public String getEncryptionServiceLogin() {
        return encryptionServiceLogin;
    }

    public void setEncryptionServiceLogin(String encryptionServiceLogin) {
        this.encryptionServiceLogin = encryptionServiceLogin;
    }

    public String getEncryptionServicePassword() {
        return encryptionServicePassword;
    }

    public void setEncryptionServicePassword(String encryptionServicePassword) {
        this.encryptionServicePassword = encryptionServicePassword;
    }

    public String getClientKey() {
        return clientKey;
    }

    public void setClientKey(String clientKey) {
        this.clientKey = clientKey;
    }
}
